package com.engineering.elink.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.engineering.elink.co.FollowCo;
import com.engineering.elink.domain.Follow;

public interface FollowMapper {
	int deleteByPrimaryKey(Integer followId);

    int insert(Follow record);

    Follow selectByPrimaryKey(Integer followId);

    int updateByPrimaryKeySelective(Follow record);

    int updateByPrimaryKey(Follow record);
    
    Follow selectByUserId (String userId);
    Follow selectByFollowUserId (String followUserId);
    
    List<Map<String,Object>> selectFollowList (@Param("fco") FollowCo fco);
    long selectFollowListCount (@Param("fco") FollowCo fco);
    
    List<Map<String,Object>> selectByFollowList (@Param("fco") FollowCo fco);
    long selectByFollowListCount (@Param("fco") FollowCo fco);
    
    List<Map<String,Object>> selectBothFollowList(@Param("fco") FollowCo fco);
    long selectBothFollowListCount (@Param("fco") FollowCo fco);
    
    Follow selectByUserIdAndFollowUserId(@Param("userId") String userId,@Param("followUserId") String followUserId);
}